Optimal. Leaf size=43 \[ -\frac{(b c-a d) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b}}-\frac{c}{a x} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0643476, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1 \[ -\frac{(b c-a d) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b}}-\frac{c}{a x} \]
Antiderivative was successfully verified.
[In] Int[(c + d*x^2)/(x^2*(a + b*x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 9.92165, size = 34, normalized size = 0.79 \[ - \frac{c}{a x} + \frac{\left (a d - b c\right ) \operatorname{atan}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{a^{\frac{3}{2}} \sqrt{b}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((d*x**2+c)/x**2/(b*x**2+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0424333, size = 42, normalized size = 0.98 \[ \frac{(a d-b c) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b}}-\frac{c}{a x} \]
Antiderivative was successfully verified.
[In] Integrate[(c + d*x^2)/(x^2*(a + b*x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.005, size = 48, normalized size = 1.1 \[{d\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{bc}{a}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{c}{ax}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((d*x^2+c)/x^2/(b*x^2+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)/((b*x^2 + a)*x^2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.246497, size = 1, normalized size = 0.02 \[ \left [-\frac{{\left (b c - a d\right )} x \log \left (\frac{2 \, a b x +{\left (b x^{2} - a\right )} \sqrt{-a b}}{b x^{2} + a}\right ) + 2 \, \sqrt{-a b} c}{2 \, \sqrt{-a b} a x}, -\frac{{\left (b c - a d\right )} x \arctan \left (\frac{\sqrt{a b} x}{a}\right ) + \sqrt{a b} c}{\sqrt{a b} a x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)/((b*x^2 + a)*x^2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.82574, size = 82, normalized size = 1.91 \[ - \frac{\sqrt{- \frac{1}{a^{3} b}} \left (a d - b c\right ) \log{\left (- a^{2} \sqrt{- \frac{1}{a^{3} b}} + x \right )}}{2} + \frac{\sqrt{- \frac{1}{a^{3} b}} \left (a d - b c\right ) \log{\left (a^{2} \sqrt{- \frac{1}{a^{3} b}} + x \right )}}{2} - \frac{c}{a x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x**2+c)/x**2/(b*x**2+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.230791, size = 50, normalized size = 1.16 \[ -\frac{{\left (b c - a d\right )} \arctan \left (\frac{b x}{\sqrt{a b}}\right )}{\sqrt{a b} a} - \frac{c}{a x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)/((b*x^2 + a)*x^2),x, algorithm="giac")
[Out]